package java180.f;

// An interface that contains constants. 
interface IConst {
  int ARRAYSTAR = 0; 
  int ARRAYEND = 10;
  String ERRORMSG = " ERROR! OVER ARRAY NUMBERS! ";
}
class IConstD implements IConst {
  public static void main(String args[]) {
    int nums[] = new int[ARRAYEND];
						
    for(int i= ARRAYSTAR; i < 11; i++) {
      if(i >= ARRAYEND) System.out.println(ERRORMSG);
      else {
        nums[i] = i;
        System.out.print(nums[i] + " ");
      }
    }
  }
}
